import { defineStore } from "pinia"
import { ref } from "vue"

export const useCounterStore = defineStore("counter", () => {

const counts = ref(0)
const update = () =>  {
  counts.value++
}
return {counts, update}
}, { persist: true })